<?php

require_once BASE_PATH.'application/models/basedao'.EXT;

class embarazadacaractsdao extends baseDAO {
	
	var $table = 'embarazada_caracteristica';
	
	var $sql   = '';

	function __construct()
	{
	    parent::__construct();
	}
	function _defaultSQL()
	{
		$this->db->select('id_caracteristica, id_embarazada');
	}
	
    function getCharacteristics($id_embarazada){
        $this->db->select('id_caracteristica');
        $this->db->where(array("id_embarazada ="=>$id_embarazada));
	    $query = $this->db->get($this->table);
	    return $query->result_array();
    }
    function insert_batch($data){
	$result = $this->db->insert_batch($this->table, $data); 
        return $result;  
    }

}

?>